package com.qf.mapper;

import com.qf.entity.SelectCourse;
import com.qf.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * --- 天道酬勤 ---
 *
 * @author Hulboy
 * @date 2024/8/23
 * @desc --- 一码平川 勇往直前 ---
 */
public interface SelectCourseMapper {

    List<SelectCourse> findAll2(HashMap<String, String> map);
    List<SelectCourse> findAll(HashMap<String, String> map);

    boolean addCourse(SelectCourse course);

    boolean edit(SelectCourse course);

    boolean deleteById(int id);

    List<Student> findAll3(Integer cid);

    int deleteStudent(Integer sid);

    int updateNum(Integer cid);

    int deletestudent(@Param("sid") Integer sid, @Param("cid") Integer cid);
}
